package cn.kgc.javase.collection;

import java.util.HashSet;

/**
 * @author 课工场
 * @date 2024/8/15
 * @description
 */
public class HashSetDemo {

    public static void main(String[] args) {

        //数据补课重复   map集合的key
        HashSet<Integer> numbers = new HashSet<>();

        numbers.add(10);
        numbers.add(2);
        numbers.add(2);

        numbers.add(4);
        numbers.add(3);
        numbers.add(11);

        System.out.println("numbers = " + numbers);

    }
}
